package com.base.web.dao.master.auth;

import com.base.web.core.basic.mapper.BasicMapper;
import com.base.web.model.master.auth.ResourceBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ResourceMapper extends BasicMapper<ResourceBean> {
    /**
     * 根据用户id及父级菜单id查找该用户拥有的菜单
     * @param parentId 父级Id
     * @param id 用户id
     * @return
     */
    List<ResourceBean> queryMenuListByParentId(@Param("parentId")String parentId, @Param("id")String id);

    /**
     * 根据父级菜单id查找菜单
     * @param parentId
     * @return
     */
    List<ResourceBean> queryMenuList(String parentId);

    List<ResourceBean> queryManageList();
}